<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript"></script>
	</head>
	<body>
		<!--<div id="app">
			{{msg}}
		</div>-->
		<!--<div id="app">
			{{age > 60 ? lastName : fullName}}
		</div>-->
		<!--<div id="app">
			{{firstName + lastName}}
		</div>-->
		
		<div id="app">
			{{getFullName()}}
		</div>
		
		<script type="text/javascript">
			/*new Vue({
				el : "#app",
				data:{
					msg : "hello"
				}
			})*/
			
			new Vue({
				el : "#app",
				data : {
					msg : "hello",
					age : 80,
					lastName : "liu",
					firstName : "luwei",
					fullName : "luwei liu"
				},
				methods: {
					getFullName : function(){
						return this.firstName + this.lastName;
					}
				}
			})
		</script>
	</body>
</html>
